Skip to content

Conversation

@erikvansebille
Copy link
Member

During a discussion with @MeikeBos, I realised we don't yet show how to take advantage of xarray operations on fields. So this tutorial shows how to sum two fields (on the same grid) using xarray operations. It would be a good place to point users to when they ask about how to best adapt their fields

We could also add more complex xarray operations (e.g. vertical averaging of the horizontal flow-field), but then it would become very long

@VeckoTheGecko
Copy link
Contributor

We could also add more complex xarray operations (e.g. vertical averaging of the horizontal flow-field), but then it would become very long

I'm not opposed to long notebooks. I think having one larger notebook on manipulating field data before passing through would be very beneficial (more - I think - than splitting them across different notebooks)

@erikvansebille
Copy link
Member Author

Good suggestion. Now done in 2801d59

Copy link
Contributor

@VeckoTheGecko VeckoTheGecko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@erikvansebille erikvansebille changed the title Adding a tutorial on how to sum fields using xarray operations Adding a tutorial on how to manipulate fields using xarray operations Jan 16, 2026
@erikvansebille erikvansebille merged commit f644537 into v4-dev Jan 16, 2026
11 checks passed
@erikvansebille erikvansebille deleted the tutorial_summingfields branch January 16, 2026 06:26
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants